﻿using Ardalis.Specification;
using HuaweiCloud.Dotnet.Samples.ESports.Main.Entities;

namespace HuaweiCloud.Dotnet.Samples.ESports.Main.Specification
{
    public class DeviceSpecification : Specification<Device>
    {
        /// <summary>
        /// 查找包含在Id列表中的设备集合
        /// </summary>
        /// <param name="ids">设备id集合</param>
        public DeviceSpecification(IEnumerable<Guid> ids)
        {
            Query.Where(x => ids.Contains(x.Id));
        }
    }
}
